package cn.webrx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>功能描述: </p>
 *
 * @author webrx
 * @version 1.0
 * @date 2020-06-17 13:26
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    @ResponseBody
    public String index() {
        return "hello world springboot 2.3.1.release";
    }

    @RequestMapping("/show")
    public String show() {
        return "show";
    }


    @RequestMapping("/ok")
    public String ok(Model m) {
        m.addAttribute("msg","hello jsp中文效果");
        return "show";
    }
}
